﻿@model GameSchool.Models.ExamsViewModel

@{
    ViewBag.Title = Model.examTitle;
    ViewBag.Description = Model.examDescription;
    ViewBag.TimeLimit = Model.examTimeLimit;
    Layout = "~/Views/Shared/_LayoutTeacher.cshtml";
}



<div class="mainSectionStuff">
<h2>Create Exam</h2>
    <div class="createForm">  

@using (Html.BeginForm())
{  
    @Html.ValidationSummary(true)
    @Html.HiddenFor(x => x.LevelID)
    @Html.HiddenFor(x => x.courseID)
    @Html.HiddenFor(x => x.examID)
    @Html.HiddenFor(x => x.examXP)

<div>
<div class ="tableSubtitle">Title of online exam</div>
@Html.TextBoxFor(x => x.examTitle, new {@Value = ViewBag.Title})
</div>
    
<div>
<div class ="tableSubtitle">Description</div>
@Html.TextBoxFor(x => x.examDescription, new { @Value = ViewBag.Description })
</div>
    
<div>
<div class ="tableSubtitle">Time limit of online exam</div>
@Html.TextBoxFor(x => x.examTimeLimit, new { @Value = ViewBag.TimeLimit })
</div>
    
<div id='QuestionGroup'>
	<ul id="QuestionDiv1">
		<label>Question #1 : </label><input type='textbox' id='textbox1' >
     </ul>
	<li id="AnswerDiv1">
	</li>
</div>



<input type='button' value='Add Question' id='addQuestion'/>
<input type='button' value='Add Answer' id='addAnswer'/>
<input type='button' value='Remove Question' id='removeQuestion'/>
<input type='button' value='Remove Answer' id='removeAnswer'/>
//<input type='button' value='Get Question Value' id='getQuestionValue'/>
//<input type='button' value='Get Answer Value' id='getAnswerValue'/>

//<input id="Hidden1" type="hidden" runat="server" />

<p>
    <input type="submit" value="Submit Test" />
</p>

}
    </div>
</div>


